<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>系统 | 商家管理</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

    <!-- FooTable -->
    <link href="css/plugins/footable/footable.core.css" rel="stylesheet">
    <!-- Sweet Alert -->
    <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
</head>

<body>

    <div id="wrapper">

        <!--菜单-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav metismenu" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element"> <span>
                            <img alt="image" class="img-circle" src="img/profile_small.jpg" />
                             </span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="dashboard_2.html#">
                            <span class="clear"> <span class="block m-t-xs"> <strong class="font-bold">王永彬</strong>
                             </span> <span class="text-muted text-xs block">超级管理员 <b class="caret"></b></span> </span> </a>
                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                <li><a href="#">个人信息</a></li>
                                <li class="divider"></li>
                                <li><a href="login.html">退出</a></li>
                            </ul>
                        </div>
                        <div class="logo-element">
                            IN+
                        </div>
                    </li>

                    <li class="active">
                        <a href="admin_index.html"><i class="fa fa-th-large"></i> <span class="nav-label">首页</span>
                            <span class="fa arrow"></span></a>
                    </li>


                    <li class="">
                        <a href="admin_shop.html"><i class="fa fa-th-large"></i> <span class="nav-label">商家管理</span>
                            <span class="fa arrow"></span></a>
                    </li>

                    <li class="">
                        <a href="admin_hongbao.html"><i class="fa fa-th-large"></i> <span class="nav-label">红包管理</span>
                            <span class="fa arrow"></span></a>
                    </li>

                    <li class="">
                        <a href="admin_news.html"><i class="fa fa-th-large"></i> <span class="nav-label">新闻管理</span>
                            <span class="fa arrow"></span></a>
                    </li>

                    <li class="">
                        <a href="admin_gg.html"><i class="fa fa-th-large"></i> <span class="nav-label">广告管理</span>
                            <span class="fa arrow"></span></a>
                    </li>

                </ul>
            </div>
        </nav>

        <div id="page-wrapper" class="gray-bg">

            <div class="row border-bottom">
                <nav class="navbar navbar-static-top white-bg" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                        <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="shop_index.html#"><i class="fa fa-bars"></i> </a>
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li>
                            <span class="m-r-sm text-muted welcome-message">系统管理后台.</span>
                        </li>

                        <li>
                            <a href="shop_index.html">
                                <i class="fa fa-sign-out"></i>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>

            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>新闻管理</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="index.html">首页</a>
                        </li>
                        <li>
                            <a>新闻管理</a>
                        </li>
                        <li class="active">
                            <strong>新闻管理</strong>
                        </li>
                    </ol>
                </div>
                <div class="col-lg-2">

                </div>
            </div>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>新闻信息</h5>

                            <div class="ibox-tools">
                                <a href="#modal-form-add" class="btn btn-xs btn-primary" data-toggle="modal">添加新闻</a>
                            </div>
                        </div>
                        <div class="ibox-content">

                            <table class="table table-hover">
                                <thead>
                                <tr>

                                    <th data-toggle="true">新闻名称</th>
                                    <th>所属分类</th>
                                    <th>新闻内容</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>今日信息</td>
                                        <td>顶级新闻</td>
                                        <td>某某今日上头条了</td>
                                        <td>
                                            <a data-toggle="modal" class="btn-xs" href="#modal-form">编辑</a>
                                            <a href="#">删除</a>
                                        </td>
                                    </tr>
                                </tbody>
                                <tfoot>
                                <tr>
                                    <td colspan="5">
                                        <ul class="pagination pull-right"></ul>
                                    </td>
                                </tr>
                                </tfoot>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer">
            <div class="pull-right">
                10GB of <strong>250GB</strong> Free.
            </div>
            <div>
                <strong>Copyright</strong> Example Company &copy; 2014-2015
            </div>
        </div>

        </div>
        </div>


    <!-- 添加新闻信息表单 -->
    <div id="modal-form-add" class="modal inmodal fade" aria-hidden="true">
        <div class="modal-dialog ">
            <div class="modal-content">
                <div class="modal-header">
                    <h4>添加新闻信息</h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">新闻名称：</label>
                            <div class="col-sm-8">
                                <input id="foodname" name="foodname" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">新闻分类：</label>
                            <div class="col-sm-8">
                                <select id="foodgategory" name="foodgategory" class="form-control" >
                                    <option>顶级新闻</option>
                                    <option>二级新闻</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">新闻内容：</label>
                            <div class="col-sm-8">
                                <textarea cols="40">

                                </textarea>
                            </div>
                        </div>
                    </form>
                </div>

                <div class="modal-footer">
                    <button type="button" class="btn btn-sm btn-white" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-sm btn-primary" data-dismiss="modal">保存</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 修改新闻信息表单 -->
    <div id="modal-form" class="modal inmodal fade" aria-hidden="true">
        <div class="modal-dialog ">
            <div class="modal-content">
                <div class="modal-header">
                    <h4>修改新闻信息</h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">新闻名称：</label>
                            <div class="col-sm-8">
                                <input id="foodname" name="foodname" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">新闻分类：</label>
                            <div class="col-sm-8">
                                <select id="foodgategory" name="foodgategory" class="form-control" >
                                    <option>顶级新闻</option>
                                    <option>二级新闻</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">新闻内容：</label>
                            <div class="col-sm-8">
                                <textarea cols="20">

                                </textarea>
                            </div>
                        </div>
                    </form>
                </div>

                <div class="modal-footer">
                    <button type="button" class="btn btn-sm btn-white" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-sm btn-primary" data-dismiss="modal">保存</button>
                </div>
            </div>
        </div>
    </div>



    <!-- Mainly scripts -->
    <script src="js/jquery-2.1.1.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

    <!-- Custom and plugin javascript -->
    <script src="js/inspinia.js"></script>
    <script src="js/plugins/pace/pace.min.js"></script>


    <!-- Sweet alert -->
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>

    <!-- Page-Level Scripts -->
    <script>
        $(document).ready(function() {

            $('.footable').footable();
            $('.footable2').footable();


            $('.demo1').click(function(){

                swal({
                    title: "商家审核?",
                    text: "请确认商家信息是否正确!",
                    type: "warning",
                    cancelButtonText:"取消",
                    showCancelButton: true,
                    confirmButtonColor: "#DD6B55",
                    confirmButtonText: "确定!",
                    closeOnConfirm: false
                }, function () {
                    swal("审核成功", "审核成功.", "success");
                });
            });

        });

    </script>
</body>

</html>
